package example.demo.dp2;

import com.google.common.collect.Lists;

import java.util.List;

public class Demo {
    public static void main(String[] args) {
        List<Z> zList = Lists.newArrayList(new Z1(false), new Z2(false), new Z3(false));
        ZChain chain=new ZChain();
        chain.zList=zList;
        chain.doFilter("哇哈哈");
    }
}
